import request from '@/utils/request'

/**
 * 供应商信息列表
 * @author 于晨阳
 * @date 2025-4-27
 * @param params
 * @returns {AxiosPromise}
 */

export function findAll(baseSupplier) {
  return request({
    url: '/base/supplier/page',
    method: 'get',
    params: baseSupplier
  })
}

export function deleteOne(baseSupplier) {
  return request({
    url: '/base/supplier/deleteOne',
    method: 'get',
    params: baseSupplier
  })
}

export function deleteBatch(baseSupplier) {
  return request({
    url: '/base/supplier/deleteBatch',
    method: 'get',
    params: baseSupplier
  })
}

export function enable(baseSupplier) {
  return request({
    url: '/base/supplier/enable',
    method: 'get',
    params: baseSupplier
  })
}

export function forbid(baseSupplier) {
  return request({
    url: '/base/supplier/forbid',
    method: 'get',
    params: baseSupplier
  })
}

export function save(dialogForm) {
  return request({
    url: '/base/supplier/save',
    method: 'get',
    params: dialogForm
  })
}

export function update(dialogForm) {
  return request({
    url: '/base/supplier/update',
    method: 'get',
    params: dialogForm
  })
}



